<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格</title>
</head>
<body>
    <table border="1" cellspacing="0" cellpadding="0"
 width="300px" height="100px">
 <caption>2021年成绩单.</caption>
 <tr>   
        <th rowspan="2">姓名</th> 
        <th colspan="2">科目</th>
        <!-- <th>数学 </th> -->
        <th rowspan="2">总分</th> 
    </tr>
    <tr> 
        <!-- <th>姓名 </th>  -->
        <th>语文 </th>
        <th>数学 </th>
        <!-- <th>总分 </th>  -->
    </tr>
    <tr> 
        <th rowspan="2">张三 </th> 
        <td>95 </td>
        <td>90  </td>
        <td>185 </td> 
    </tr>
    <tr> 
        <!-- <th>李四 </th>  -->
        <td>99 </td>
        <td>90 </td>
        <td>189</td> 
    </tr>
 </table>   
</body>

</html>